<template>
  <header>
    <div class="inner">
      <img src='../../public/img/homePage/logo.png'>
      <!-- <span @click="toEle('project')">项目</span>
      <router-link to="/college">
        <span @click="toEle('todo')">申请条件</span>
      </router-link>
      <span @click="toEle('public')">公开课</span> -->

      <a href='#project'>项目</a>
      <router-link to="/college">
        <span>申请条件</span>
      </router-link>
      <a href='#public'>公开课</a>
    </div>
  </header>
</template>
<script>
export default {
  name: 'newHeader',
  methods: {
    toEle (el) {
      this.$emit('toEle', el)
    }
  }
}
</script>
<style lang="less" scoped>
  header{
    position: relative;
    z-index: 2;
    width: 100%;
    height: 67px;
    // opacity: 0.27;
    background-color: rgba(56, 56, 56, 0.27);
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    flex-flow: row nowrap;
    .inner{
      display: flex;
      width: 1200px;
      min-width: 1200px;
      flex-flow: row nowrap;
      color: rgba(255, 255, 255, 1);
      align-items: center;
      justify-content: space-between;
      img{
        width: 148px;
        height: 41px;
        margin-right: 700px;
      }
      span, a{
        display: inline-block;
        text-align: center;
        height: 67px;
        color: rgba(255, 255, 255, 1);
        line-height: 67px;
        padding: 0 20px;
        cursor: pointer;
      }

      span:hover, a:hover{
        background: rgba(148, 26, 43, 1)!important;
      }
    }
  }
</style>
